

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>雷谛净水器-派单处理</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/reset.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/root.css') }}" />
<link rel="stylesheet" href="{{ URL::asset('front/fonts/font-awesome.min.css') }}">
<script type="text/javascript" src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('front/js/toogle.js') }}"></script>
</head>
<body>

    <!-- start header -->
    	<div id="header">
         <img src="{{ URL::asset('front/img/logo.png') }}" width="120" height="40" alt="logo" class="logo" />
         	<a href="javascript:void(0)" onclick="WeixinJSBridge.call('closeWindow');" class="button back">
         	    <img src="{{ URL::asset('front/img/wechat-button.png') }}" width="17" height="18" alt="icon" />
            </a>
         	<a href="#" class="button create"><img src="{{ URL::asset('front/img/user.png') }}" width="16" height="16" alt="icon"/></a>
        <div class="clear"></div>
</div>
    <!-- end header -->


    <!-- start page -->
    <div class="page">


            <div class="simplebox">
                <h1 class="titleh">工单处理</h1>
                <div class="content seamless min-h300">
                    <ul id="multi-list">

                    {{ Form::open(array('route' => 'services.paidan_store','id'=>'works','class'=>'form-horizontal')) }}                    <li>姓名： {{ $service->mount->mount_name }}</li>
                   <li>电话：  {{ $service->mount->mount_mobile }}</li>
                   <li>地址： {{ $service->mount->xiaoqu->name }}{{ $service->mount->address }}</li>
                   <li>服务类型：

                  @if($service->type == 1)
                    试用
                  @elseif($service->type == 10)
                    订购
                  @elseif($service->type == 11)
                    拆机
                  @elseif($service->type == 12)
                    维修
                  @elseif($service->type == 13)
                    换芯<span class="badge">{{ $service->commodity->name }}</span>
                  @endif
                   </li>

                  @if($service->type == 10)
                   <li>付款方式：@if($service->paytype == 1)付现金
                   @elseif($service->paytype == 2)
                    微信支付
                        @if($service->all == 1)
                        （已完成）
                        @else
                          （未完成）
                        @endif
                    @endif</li>
                  @endif
                   <li>型号：{{ $service->mount->machine->name }}</li>
                    <input type="hidden" name="service_id" value="{{ $service->id }}">

                    <div class="form-line">
                    @foreach($works as $work)
                    <input type="radio" @if($service->worker_id != 0) disabled @endif  @if($work->id == $service->worker_id) checked  @endif name="radio" value="{{ $work->id }}">{{ $work->name }}<br>
                    @endforeach

                    @if($service->worker_id == 0)
                    <button class="submit-button"  type="submit">派单</button>
                    @else
                    <button class="submit-button" disabled  type="button">已派单</button>
                    @endif
                    </div>

                    {{ Form::close() }}
                    </ul>







                </div>
           </div>

            <!-- start top button -->
            <div class="topbutton"><a href="#"><span>顶部</span></a></div>
            <!-- end top button -->



            <!-- start footer -->
            <div class="footer">
            © 2014 - 2015  邦顶科技 <a href="http://www.o2bang.com">www.o2bang.com</a> </div>
            <!-- end footer -->




    <div class="clear"></div>
    </div>
    <!-- end page -->
<script type="text/javascript" src="{{ URL::asset('front/js/frame.js') }}"></script>

</body>
</html>


